.container {
  background: linear-gradient(135deg, var(--theme-bg-card) 0%, var(--theme-bg-secondary) 50%, var(--theme-bg-card) 100%);
  color: var(--theme-text-primary);
  min-height: 100%;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
      rgba(102, 126, 234, 0.1) 0%, 
      transparent 25%, 
      transparent 75%, 
      rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: linear-gradient(135deg, var(--theme-bg-primary) 0%, var(--theme-bg-secondary) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--theme-border-secondary);
  padding: 20px 24px;
  margin-bottom: 0;
}

.headerContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--theme-text-primary);
  flex: 1;
  margin-right: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.closeButton {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--theme-text-primary);
  font-size: 20px;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);

  &:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  &:active {
    transform: scale(0.95);
  }
}

.loadingContainer {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  :global(.adm-skeleton) {
    background: linear-gradient(90deg, var(--theme-bg-hover) 25%, var(--theme-bg-secondary) 50%, var(--theme-bg-hover) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.errorContainer {
  padding: 60px 24px;
  text-align: center;
  color: var(--theme-text-muted);

  p {
    font-size: 16px;
    margin: 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.heroSection {
  height: 400px; // 增加高度以提供更多显示空间
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 0;
  background-color: var(--theme-bg-card); // 添加背景色，当图片不能填满时显示
  cursor: pointer; // 添加指针样式
  transition: all 0.3s ease; // 添加过渡效果
  display: flex;
  align-items: center;
  justify-content: center;
  
  &:hover {
    transform: scale(1.02); // 悬停时轻微放大
  }
}

.heroImage {
  width: 100%;
  height: 100%;
  object-fit: contain; // 确保图片完整显示，不会被裁剪
  object-position: center;
  background-color: var(--theme-bg-card); // 当图片比例不匹配时的背景色
  border-radius: 8px; // 添加圆角，更美观
}

.heroOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: 24px 20px;
  display: flex;
  justify-content: flex-end;
}

.viewCount {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 6px 10px;
  border-radius: 25px;
  color: var(--theme-text-primary);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contentWrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  padding-bottom: 20px;
}

.titleSection {
  .title {
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-text-primary);
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, var(--theme-text-primary) 0%, var(--theme-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .description {
    font-size: 18px;
    color: var(--theme-text-secondary);
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

.section {
  .sectionTitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 16px 0;
  }
}

.roleList {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roleCard {
  background-color: var(--theme-bg-card);
  border: 1px solid var(--theme-border-primary);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;

  &:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
  }
}

.roleHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.roleAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-border-primary);
}

.roleName {
  font-size: 18px;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin: 0;
}

.roleDescription {
  font-size: 14px;
  color: var(--theme-text-muted);
  line-height: 1.5;
  margin: 0;
}

.authorCard {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--theme-bg-card);
  border: 1px solid var(--theme-border-primary);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.2s ease;

  &:hover {
    border-color: var(--theme-primary);
  }
}

.authorAvatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-border-primary);
}

.authorName {
  font-size: 16px;
  font-weight: 500;
  color: var(--theme-text-primary);
}

.actionSection {
  display: flex;
  justify-content: center;
  padding: 32px 0 24px 0;
}

.actionButton {
  background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-hover) 100%);
  color: white;
  border: none;
  padding: 20px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  justify-content: center;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
  }

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
  }

  &:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);

    &::before {
      left: 100%;
    }

    &::after {
      width: 300px;
      height: 300px;
    }

    .buttonIcon {
      transform: rotate(360deg) scale(1.2);

    }

    .buttonArrow {
      transform: translateX(8px);
    }
  }

  &:active {
    transform: translateY(-2px) scale(0.98);
  }

  &:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    
    &:hover {
      transform: none !important;
      box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
      
      &::before {
        left: -100% !important;
      }
      
      &::after {
        width: 0 !important;
        height: 0 !important;
      }
      
      .buttonIcon {
        transform: none !important;
      }
      
      .buttonArrow {
        transform: none !important;
      }
    }
  }
}

.buttonIcon {
  font-size: 18px;
  transition: all 0.3s ease;
  display: flex !important;
}

.buttonText {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.buttonArrow {
  font-size: 18px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    max-width: 95vw;
    border-radius: 16px;
  }

  .heroSection {
    height: 280px;
  }

  .titleSection {
    .title {
      font-size: 28px;
    }

    .description {
      font-size: 16px;
    }
  }

  .contentWrapper {
    padding: 20px;
  }

  .actionButton {
    padding: 16px 32px;
    font-size: 15px;
  }
}

/* 添加一些微妙的动画效果 */
.container {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
:global {
  .adm-modal-content{
    padding: 0;
  }
  .adm-modal-body{
    background-color: var(--theme-bg-primary);
  }
  .adm-center-popup-wrap{
    max-width: none;
  }
  .adm-center-popup-body{
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary) !important;
  }
  .adm-dialog-title{
    margin-bottom: 0 !important;
  }
  .adm-dialog-content{
    color: var(--theme-text-primary) !important;
  }
  // 限制只影响非header-nav-dialog的按钮
  .adm-dialog .adm-button:not(.adm-button-default).adm-button-fill-none{
    color: var(--theme-text-primary) !important;
  }
  // 确保header-nav-dialog不受影响 - 明确使用正确的颜色变量
  .header-nav-dialog .adm-button,
  .header-nav-dialog .adm-dialog-button{
    color: var(--theme-text-primary) !important;
  }
  .header-nav-dialog .adm-dialog-content{
    color: var(--theme-text-primary) !important;
  }
}

// 图片点击提示样式
.imageClickHint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  
  .heroSection:hover & {
    opacity: 1;
  }
}


// 图片放大弹窗样式
.imageModalContainer {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

.fullSizeImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.closeImageButton {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  
  &:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }
}

